import { useState } from 'react'
import React, { Component } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
// import './App.css'
// import '../src/assets/style/index.less'
import 'antd/dist/reset.css';
import { HashRouter,BrowserRouter,Routes,Route } from 'react-router-dom'
const  Home=React.lazy(()=>import("./pages/home/Home"))
export default class App extends Component {

  render(){

      return (
        <React.Suspense fallback={<div>加载中....</div>}>
          <BrowserRouter>
            <Routes>
              <Route path='/' element={<Navigator to="/Home"></Navigator>}></Route>
              <Route path='/Home' element={<Home></Home>}></Route>
            </Routes>
          </BrowserRouter>

        </React.Suspense>


      )


  }



}
